Objects Reference

flyEngine::find_node

Prototype

bsp_node *find_node(bsp_node *n,vector& v,float mindist)

Parameters

Parameter Type Description
n bsp_node * bsp root node
v vector& point in world co-ordinates
mindist float minimum distance

Return Value

Returns the bsp leaf the point v is in. 

Remarks

This function finds the leaf node for a given point. If the point distance to any plane is less than mindist, then the leaf is rejected.